package com.java.base.exercise.designmode.single;

/**
 * @Author RenPu
 * @Date 2021/6/21 9:29
 * @Version 1.0
 * @Description: 设计模式---单例设计模式V1.0  饿汉式加载，类初始化时进行创建对象，会存在对象如果不被用到的情况，占用资源的浪费
 **/
public class Single_001 {

    private static final Single_001 Instance = new Single_001();

    private Single_001() {
    }

    public static Single_001 getInstance() {
        return Instance;
    }


}
